//
//  CellOfxingcheng.m
//  project-A (pianke)
//
//  Created by dllo on 16/2/26.
//  Copyright © 2016年 scott. All rights reserved.
//

#import "CellOfxingcheng.h"
#import <DKNightVersion.h>
@implementation CellOfxingcheng


-(void)dealloc{
    [_image release];
    [_decsxingcheng release];
    [super dealloc];
    
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatview];
        
        
        
    }
    return self;
}

-(void)creatview{
    
    self.decsxingcheng = [[UILabel alloc]init];
    [self.contentView addSubview:self.decsxingcheng];
    
    self.decsxingcheng.backgroundColor = [UIColor blackColor];
     self.decsxingcheng.textColor = [UIColor whiteColor];
    self.decsxingcheng.font = [UIFont fontWithName:@"AmericanTypewriter-Bold" size:17];
    [self.decsxingcheng release];
    
    self.image = [[UIImageView alloc]init];
    [self.contentView addSubview:self.image];
    self.image.backgroundColor = [UIColor blackColor];
    
    [self.image setImage:[UIImage imageNamed:@"dian"]];
    
    [self.image release];
    
}


-(void)layoutSubviews{
    [super layoutSubviews];
    CGFloat width = [UIScreen mainScreen].bounds.size.width;
    self.decsxingcheng.frame = CGRectMake(0, 0, width * 2 / 3, 30);
    
    self.image.frame = CGRectMake(0, 0, 30, 30);
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
